
const { ccclass, property } = cc._decorator;
import SdkHelper from "./SdkHelper";
import EngineUtil from "./EngineUtil";
import BasePageCtrl, { AnimType } from "./BasePageCtrl";
import PageMgr from "./PageMgr";
import UiManage from "./UiManage";
import GameDataMgr from "./GameDataMgr";
import AgreementPage from "./AgreementPage";
import FrameworkManager from "./frameworkManager";

@ccclass
export default class AgreementPageCtrl extends BasePageCtrl {

    userHandler() {
        this.showUserAgreement();
    }

    privateHandler() {
        this.showPrivacyAgreement();
    }

    showUserAgreement() {
        FrameworkManager.log("展示用户协议");
        PageMgr.showPage("WebPage", {
            type: GameDataMgr.WebUrlType.USER_TYPE,
            url: "",
        });
    }

    showPrivacyAgreement() {
        FrameworkManager.log("展示隐私协议");
        PageMgr.showPage("WebPage", {
            type: GameDataMgr.WebUrlType.PRIVACY_TYPE,
            url: "",
        });
    }
};
